package interfaceGraphique;

import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.BoxLayout;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;

import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JList;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JComboBox;
import java.awt.Insets;
import java.lang.Short;

public class GestionUETEGUI extends JPanel {

	private JLabel ChoixTELabel = null;
	private JComboBox ChoixTEComboBox = null;
	private JLabel NomTELabel = null;
	private JLabel NBHeuresLabel = null;
	private JPanel UEPane = null;  //  @jve:decl-index=0:visual-constraint="116,340"
	private JPanel ChoixUEPane = null;
	private JLabel ChoixSemestreLabel = null;
	private JComboBox ChoixSemestreComboBox = null;
	private JLabel ChoixUELabel = null;
	private JComboBox ChoixUEComboBox = null;
	private JLabel ListeMatieresLabel = null;
	private JScrollPane ListeMatieresScrollPane = null;
	private JList ListeMatieresList = null;
	private JPanel ButtonsChoixUEPane = null;
	private JButton AjouterMatiereButton = null;
	private JButton SupprimerMatiereButton = null;
	private JButton ModifierMatiereButton = null;
	private JLabel NomUELabel = null;
	private JTextField NomUETextField = null;
	private JLabel NBEctsLabel = null;
	private JTextField NBEctsTextField = null;
	private JLabel NoteMinLabel = null;
	private JTextField NoteMinTextField = null;
	private JLabel NoteMinExLabel = null;
	private JLabel NBEctsExLabel = null;
	private JPanel ButtonsDescUEPane = null;
	private JButton AjouterUEButton = null;
	private JButton SupprimerUEButton = null;
	private JButton ModifierUEButton = null;
	private JScrollPane DescriptionScrollPane = null;
	private JTextArea DescriptionTextArea = null;
	private JPanel TEPane = null;
	private JTextField NomTETextField = null;
	private JTextField NBHeuresTextField = null;
	private JLabel NBHeuresExLabel = null;
	private JPanel ButtonsTEPane = null;
	private JButton AjouterTEbutton = null;
	private JButton ModifierTEButton = null;
	private JButton SupprimerTEButton = null;
	private JPanel DescUEPane = null;  //  @jve:decl-index=0:visual-constraint="381,60"
	private JPanel DescriptionAreaPane = null;
	/**
	 * This method initializes 
	 * 
	 */
	public GestionUETEGUI() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        this.setBorder(new EmptyBorder(10,10,10,10));
        //this.setSize(new Dimension(716, 454));
        this.add(getTEPane(), null);
        this.add(getUEPane(),null);
        this.setMaximumSize(new Dimension(750,800));
			
	}


	/**
	 * This method initializes ChoixTEComboBox	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getChoixTEComboBox() {
		if (ChoixTEComboBox == null) {
			ChoixTEComboBox = new JComboBox();
			ChoixTEComboBox.setMaximumSize(new Dimension(400,30));
		}
		return ChoixTEComboBox;
	}


	/**
	 * This method initializes UEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getUEPane() {
		if (UEPane == null) {
			UEPane = new JPanel();
			TitledBorder UEBorder;
			UEBorder = BorderFactory.createTitledBorder("UE");
			UEPane.setBorder(UEBorder);
			UEPane.setLayout(new BoxLayout(getUEPane(), BoxLayout.X_AXIS));
			UEPane.setSize(new Dimension(392, 66));
			UEPane.add(getChoixUEPane(), null);
			UEPane.add(Box.createRigidArea(new Dimension(20,0)));
			UEPane.add(getDescUEPane(),null);
			ChoixUEPane.setAlignmentY(UEPane.TOP_ALIGNMENT);
			DescUEPane.setAlignmentY(UEPane.TOP_ALIGNMENT);
			UEPane.setMaximumSize(new Dimension(700, 500 ));

		}
		return UEPane;
	}

	/**
	 * This method initializes ChoixUEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getChoixUEPane() {
		if (ChoixUEPane == null) {
			ListeMatieresLabel = new JLabel();
			ListeMatieresLabel.setText("Liste Mati�res");
			ChoixUELabel = new JLabel();
			ChoixUELabel.setText("UE");
			ChoixUELabel.setMaximumSize(new Dimension(Short.MAX_VALUE,10));
			ChoixSemestreLabel = new JLabel();
			ChoixSemestreLabel.setText("Semestre");
			ChoixSemestreLabel.setMaximumSize(new Dimension(Short.MAX_VALUE,10));
			ChoixUEPane = new JPanel();
			ChoixUEPane.setLayout(new BoxLayout(getChoixUEPane(), BoxLayout.Y_AXIS));
			ChoixUEPane.add(ChoixSemestreLabel, null);
			ChoixUEPane.add(getChoixSemestreComboBox(), null);
			ChoixUEPane.add(ChoixUELabel, null);
			ChoixUEPane.add(getChoixUEComboBox(), null);
			//ChoixUEPane.add(Box.createVerticalGlue());
			ChoixUEPane.add(ListeMatieresLabel, null);
			ChoixUEPane.add(getListeMatieresScrollPane(), null);
			ChoixUEPane.add(getButtonsChoixUEPane(), null);
			ChoixSemestreLabel.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ChoixSemestreComboBox.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ChoixUELabel.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ChoixUEComboBox.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ListeMatieresLabel.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ListeMatieresLabel.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ListeMatieresScrollPane.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
			ButtonsChoixUEPane.setAlignmentX(ChoixUEPane.LEFT_ALIGNMENT);
		}
		return ChoixUEPane;
	}

	/**
	 * This method initializes ChoixSemestreComboBox	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getChoixSemestreComboBox() {
		if (ChoixSemestreComboBox == null) {
			ChoixSemestreComboBox = new JComboBox();
			ChoixSemestreComboBox.setMaximumSize(new Dimension(Short.MAX_VALUE,10));

		}
		return ChoixSemestreComboBox;
	}

	/**
	 * This method initializes ChoixUEComboBox	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getChoixUEComboBox() {
		if (ChoixUEComboBox == null) {
			ChoixUEComboBox = new JComboBox();
			ChoixUEComboBox.setMaximumSize(new Dimension(Short.MAX_VALUE,10));

		}
		return ChoixUEComboBox;
	}

	/**
	 * This method initializes ListeMatieresScrollPane	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getListeMatieresScrollPane() {
		if (ListeMatieresScrollPane == null) {
			ListeMatieresScrollPane = new JScrollPane();
			ListeMatieresScrollPane.setViewportView(getListeMatieresList());
		}
		return ListeMatieresScrollPane;
	}

	/**
	 * This method initializes ListeMatieresList	
	 * 	
	 * @return javax.swing.JList	
	 */
	private JList getListeMatieresList() {
		if (ListeMatieresList == null) {
			ListeMatieresList = new JList();
		}
		return ListeMatieresList;
	}

	/**
	 * This method initializes ButtonsChoixUEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getButtonsChoixUEPane() {
		if (ButtonsChoixUEPane == null) {
			ButtonsChoixUEPane = new JPanel();
			ButtonsChoixUEPane.setLayout(new BoxLayout(getButtonsChoixUEPane(), BoxLayout.X_AXIS));
			ButtonsChoixUEPane.add(getAjouterMatiereButton(), null);
			ButtonsChoixUEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsChoixUEPane.add(getSupprimerMatiereButton(), null);
			ButtonsChoixUEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsChoixUEPane.add(getModifierMatiereButton(), null);
			ButtonsChoixUEPane.add(Box.createRigidArea(new Dimension(10,0)));
		}
		return ButtonsChoixUEPane;
	}

	/**
	 * This method initializes AjouterMatiereButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getAjouterMatiereButton() {
		if (AjouterMatiereButton == null) {
			AjouterMatiereButton = new JButton();
			AjouterMatiereButton.setText("+");
			AjouterMatiereButton.setPreferredSize(new Dimension(25,25));
		}
		return AjouterMatiereButton;
	}

	/**
	 * This method initializes SupprimerMatiereButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getSupprimerMatiereButton() {
		if (SupprimerMatiereButton == null) {
			SupprimerMatiereButton = new JButton();
			SupprimerMatiereButton.setText("-");
			SupprimerMatiereButton.setPreferredSize(new Dimension(25,25));
		}
		return SupprimerMatiereButton;
	}

	/**
	 * This method initializes ModifierMatiereButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getModifierMatiereButton() {
		if (ModifierMatiereButton == null) {
			ModifierMatiereButton = new JButton();
			ModifierMatiereButton.setText("Modifier");
		}
		return ModifierMatiereButton;
	}

	/**
	 * This method initializes NomUETextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomUETextField() {
		if (NomUETextField == null) {
			NomUETextField = new JTextField();
			NomUETextField.setMaximumSize(new Dimension(Short.MAX_VALUE,30));

		}
		return NomUETextField;
	}



	/**
	 * This method initializes NBEctsTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNBEctsTextField() {
		if (NBEctsTextField == null) {
			NBEctsTextField = new JTextField();
			NBEctsTextField.setMaximumSize(new Dimension(Short.MAX_VALUE,30));
		}
		return NBEctsTextField;
	}


	/**
	 * This method initializes NoteMinTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNoteMinTextField() {
		if (NoteMinTextField == null) {
			NoteMinTextField = new JTextField();
			NoteMinTextField.setMaximumSize(new Dimension(Short.MAX_VALUE,30));

		}
		return NoteMinTextField;
	}

	/**
	 * This method initializes ButtonsDescUEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getButtonsDescUEPane() {
		if (ButtonsDescUEPane == null) {
			ButtonsDescUEPane = new JPanel();
			ButtonsDescUEPane.setLayout(new BoxLayout(getButtonsDescUEPane(), BoxLayout.X_AXIS));
			ButtonsDescUEPane.add(Box.createHorizontalGlue());
			ButtonsDescUEPane.add(getAjouterUEButton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsDescUEPane.add(getModifierUEButton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsDescUEPane.add(getSupprimerUEButton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			}
		return ButtonsDescUEPane;
	}

	/**
	 * This method initializes AjouterUEButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getAjouterUEButton() {
		if (AjouterUEButton == null) {
			AjouterUEButton = new JButton();
			AjouterUEButton.setText("Ajouter");
		}
		return AjouterUEButton;
	}

	/**
	 * This method initializes SupprimerUEButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getSupprimerUEButton() {
		if (SupprimerUEButton == null) {
			SupprimerUEButton = new JButton();
			SupprimerUEButton.setText("Supprimer");
		}
		return SupprimerUEButton;
	}

	/**
	 * This method initializes ModifierUEButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getModifierUEButton() {
		if (ModifierUEButton == null) {
			ModifierUEButton = new JButton();
			ModifierUEButton.setText("Modifier");
		}
		return ModifierUEButton;
	}

	/**
	 * This method initializes DescriptionScrollPane	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getDescriptionScrollPane() {
		if (DescriptionScrollPane == null) {
			DescriptionScrollPane = new JScrollPane();
			DescriptionScrollPane.setViewportView(getDescriptionTextArea());
		}
		return DescriptionScrollPane;
	}

	/**
	 * This method initializes DescriptionTextArea	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getDescriptionTextArea() {
		if (DescriptionTextArea == null) {
			DescriptionTextArea = new JTextArea();
		}
		return DescriptionTextArea;
	}

	/**
	 * This method initializes TEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getTEPane() {
		if (TEPane == null) {
			GridBagConstraints gridBagConstraints51 = new GridBagConstraints();
			gridBagConstraints51.insets = new Insets(1, 1, 0, 0);
			GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
			gridBagConstraints7.gridx = 1;
			gridBagConstraints7.gridwidth = 4;
			gridBagConstraints7.anchor = GridBagConstraints.EAST;
			gridBagConstraints7.gridy = 2;
			NBHeuresExLabel = new JLabel();
			NBHeuresExLabel.setText("(ex :1.5)");
			GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
			gridBagConstraints6.fill = GridBagConstraints.BOTH;
			gridBagConstraints6.gridx = 2;
			gridBagConstraints6.gridy = 1;
			gridBagConstraints6.weightx = 2.0;
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
			gridBagConstraints4.fill = GridBagConstraints.BOTH;
			gridBagConstraints4.gridx = 2;
			gridBagConstraints4.gridy = 0;
			gridBagConstraints4.weightx = 2.0;
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints3.gridy = 1;
			gridBagConstraints3.weightx = 1.0;
			gridBagConstraints3.gridwidth = 1;
			gridBagConstraints3.ipadx = 0;
			gridBagConstraints3.ipady = 0;
			gridBagConstraints3.gridx = 0;
			GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
			gridBagConstraints2.gridx = 0;
			gridBagConstraints2.ipadx = 0;
			gridBagConstraints2.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints2.ipady = 0;
			gridBagConstraints2.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints2.gridy = 0;
			GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
			gridBagConstraints5.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints5.gridy = 1;
			gridBagConstraints5.anchor = GridBagConstraints.WEST;
			gridBagConstraints5.ipadx = 0;
			gridBagConstraints5.ipady = 0;
			gridBagConstraints5.gridx = 1;
			GridBagConstraints gridBagConstraints = new GridBagConstraints();
			gridBagConstraints.anchor = GridBagConstraints.WEST;
			gridBagConstraints.gridheight = 1;
			gridBagConstraints.gridwidth = 0;
			gridBagConstraints.gridx = 1;
			gridBagConstraints.gridy = 0;
			gridBagConstraints.ipadx = 0;
			gridBagConstraints.ipady = 0;
			gridBagConstraints.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints.fill = GridBagConstraints.NONE;
			TEPane = new JPanel();
			TitledBorder TEBorder;
			TEBorder = BorderFactory.createTitledBorder("Type Enseignement");
			TEPane.setBorder(TEBorder);
			TEPane.setMaximumSize(new Dimension(700,150));
			TEPane.setLayout(new GridBagLayout());
			ChoixTELabel = new JLabel();
			ChoixTELabel.setText("Choix Type Enseignement");
			NomTELabel = new JLabel();
			NomTELabel.setText("Nom :");
			NBHeuresLabel = new JLabel();
			NBHeuresLabel.setText("NB Heures (eq. TD) :");
			TEPane.add(NomTELabel, gridBagConstraints);
			TEPane.add(NBHeuresLabel, gridBagConstraints5);
			TEPane.add(ChoixTELabel, gridBagConstraints2);
			TEPane.add(getChoixTEComboBox(), gridBagConstraints3);
			TEPane.add(getNomTETextField(), gridBagConstraints4);
			TEPane.add(getNBHeuresTextField(), gridBagConstraints6);
			TEPane.add(NBHeuresExLabel, gridBagConstraints51);
			TEPane.add(getButtonsTEPane(), gridBagConstraints7);
		}
		return TEPane;
	}

	/**
	 * This method initializes NomTETextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNomTETextField() {
		if (NomTETextField == null) {
			NomTETextField = new JTextField();
			NomTETextField.setMaximumSize(new Dimension(Short.MAX_VALUE, 30));
		}
		return NomTETextField;
	}

	/**
	 * This method initializes NBHeuresTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getNBHeuresTextField() {
		if (NBHeuresTextField == null) {
			NBHeuresTextField = new JTextField();
			NBHeuresTextField.setMaximumSize(new Dimension(Short.MAX_VALUE, 30));
		}
		return NBHeuresTextField;
	}

	/**
	 * This method initializes ButtonsTEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getButtonsTEPane() {
		if (ButtonsTEPane == null) {
			ButtonsTEPane = new JPanel();
			ButtonsTEPane.setLayout(new BoxLayout(getButtonsTEPane(), BoxLayout.X_AXIS));
			ButtonsTEPane.add(getAjouterTEbutton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsTEPane.add(getModifierTEButton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
			ButtonsTEPane.add(getSupprimerTEButton(), null);
			ButtonsTEPane.add(Box.createRigidArea(new Dimension(10,0)));
		}
		return ButtonsTEPane;
	}

	/**
	 * This method initializes AjouterTEbutton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getAjouterTEbutton() {
		if (AjouterTEbutton == null) {
			AjouterTEbutton = new JButton();
			AjouterTEbutton.setText("Ajouter");
		}
		return AjouterTEbutton;
	}

	/**
	 * This method initializes ModifierTEButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getModifierTEButton() {
		if (ModifierTEButton == null) {
			ModifierTEButton = new JButton();
			ModifierTEButton.setText("Modifier");
		}
		return ModifierTEButton;
	}

	/**
	 * This method initializes SupprimerTEButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getSupprimerTEButton() {
		if (SupprimerTEButton == null) {
			SupprimerTEButton = new JButton();
			SupprimerTEButton.setText("Supprimer");
		}
		return SupprimerTEButton;
	}

	/**
	 * This method initializes DescUEPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getDescUEPane() {
		if (DescUEPane == null) {
			GridBagConstraints gridBagConstraints18 = new GridBagConstraints();
			gridBagConstraints18.gridx = 1;
			gridBagConstraints18.gridwidth = 2;
			gridBagConstraints18.anchor = GridBagConstraints.EAST;
			gridBagConstraints18.gridy = 4;
			GridBagConstraints gridBagConstraints16 = new GridBagConstraints();
			gridBagConstraints16.gridx = 0;
			gridBagConstraints16.gridwidth = 4;
			gridBagConstraints16.fill = GridBagConstraints.BOTH;
			gridBagConstraints16.weighty = 1.0;
			gridBagConstraints16.gridy = 3;
			GridBagConstraints gridBagConstraints15 = new GridBagConstraints();
			gridBagConstraints15.fill = GridBagConstraints.BOTH;
			gridBagConstraints15.gridy = 3;
			gridBagConstraints15.weightx = 1.0;
			gridBagConstraints15.weighty = 1.0;
			gridBagConstraints15.gridwidth = 3;
			gridBagConstraints15.gridx = 0;
			GridBagConstraints gridBagConstraints14 = new GridBagConstraints();
			gridBagConstraints14.gridx = 2;
			gridBagConstraints14.anchor = GridBagConstraints.WEST;
			gridBagConstraints14.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints14.gridy = 2;
			GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
			gridBagConstraints13.gridx = 2;
			gridBagConstraints13.anchor = GridBagConstraints.WEST;
			gridBagConstraints13.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints13.gridy = 1;
			GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
			gridBagConstraints12.fill = GridBagConstraints.BOTH;
			gridBagConstraints12.gridy = 2;
			gridBagConstraints12.weightx = 1.0;
			gridBagConstraints12.gridx = 1;
			GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
			gridBagConstraints11.fill = GridBagConstraints.BOTH;
			gridBagConstraints11.gridy = 1;
			gridBagConstraints11.weightx = 1.0;
			gridBagConstraints11.ipadx = 0;
			gridBagConstraints11.insets = new Insets(0, 0, 0, 0);
			gridBagConstraints11.gridx = 1;
			GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
			gridBagConstraints10.gridx = 0;
			gridBagConstraints10.anchor = GridBagConstraints.WEST;
			gridBagConstraints10.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints10.gridy = 1;
			GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
			gridBagConstraints9.gridx = 0;
			gridBagConstraints9.anchor = GridBagConstraints.WEST;
			gridBagConstraints9.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints9.gridy = 2;
			GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
			gridBagConstraints8.fill = GridBagConstraints.BOTH;
			gridBagConstraints8.gridy = 0;
			gridBagConstraints8.weightx = 1.0;
			gridBagConstraints8.anchor = GridBagConstraints.NORTH;
			gridBagConstraints8.gridx = 1;
			GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
			gridBagConstraints1.gridx = 0;
			gridBagConstraints1.anchor = GridBagConstraints.WEST;
			gridBagConstraints1.insets = new Insets(1, 1, 0, 0);
			gridBagConstraints1.gridy = 0;
			NomUELabel = new JLabel();
			NomUELabel.setText("Nom :");
			NBEctsExLabel = new JLabel();
			NBEctsExLabel.setText("(ex : 6)");
			NBEctsLabel = new JLabel();
			NBEctsLabel.setText("NB ECTS :");
			NoteMinExLabel = new JLabel();
			NoteMinExLabel.setText("(ex : 12)");
			NoteMinLabel = new JLabel();
			NoteMinLabel.setText("Note Min :");
			DescUEPane = new JPanel();
			DescUEPane.setLayout(new GridBagLayout());
			DescUEPane.setSize(new Dimension(428, 245));
			DescUEPane.add(NomUELabel, gridBagConstraints1);
			DescUEPane.add(getNomUETextField(), gridBagConstraints8);
			DescUEPane.add(NoteMinLabel, gridBagConstraints9);
			DescUEPane.add(NBEctsLabel, gridBagConstraints10);
			DescUEPane.add(getNBEctsTextField(), gridBagConstraints11);
			DescUEPane.add(getNoteMinTextField(), gridBagConstraints12);
			DescUEPane.add(NBEctsExLabel, gridBagConstraints13);
			DescUEPane.add(NoteMinExLabel, gridBagConstraints14);
			DescUEPane.add(getDescriptionAreaPane(), gridBagConstraints16);
			DescUEPane.add(getButtonsDescUEPane(), gridBagConstraints18);
		}
		return DescUEPane;
	}

	/**
	 * This method initializes DescriptionAreaPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getDescriptionAreaPane() {
		if (DescriptionAreaPane == null) {
			GridBagConstraints gridBagConstraints17 = new GridBagConstraints();
			gridBagConstraints17.fill = GridBagConstraints.BOTH;
			gridBagConstraints17.gridy = 0;
			gridBagConstraints17.ipadx = 221;
			gridBagConstraints17.ipady = 90;
			gridBagConstraints17.weightx = 1.0;
			gridBagConstraints17.weighty = 1.0;
			gridBagConstraints17.gridwidth = 2;
			gridBagConstraints17.gridx = 0;
			DescriptionAreaPane = new JPanel();
			TitledBorder DPBorder;
			DPBorder = BorderFactory.createTitledBorder("Description UE");
			DescriptionAreaPane.setBorder(DPBorder);
			DescriptionAreaPane.setLayout(new GridBagLayout());
			DescriptionAreaPane.add(getDescriptionScrollPane(), gridBagConstraints17);
		}
		return DescriptionAreaPane;
	}

}  //  @jve:decl-index=0:visual-constraint="16,12"
